package model

import (
	"gitee.com/sansaniot/ssiot-core/httpmvc/model"
)

type User struct {
	Id       string `json:"id"`
	Username string `json:"username"`
	model.Model
}

func (u *User) TableName() string {
	return "sys_user"
}

func (u *User) getName() error {
	return u.Orm.First(u).Error
}
